/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.aratuk.manager;

import br.com.aratuk.modelo.Jogo;
import br.com.aratuk.modelo.Loteria;
import br.com.aratuk.servico.JogoServico;
import br.com.aratuk.servico.LoteriaServico;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author roniere
 */
@ManagedBean
@ViewScoped
public class ManagerAutocomplete {

    @EJB
    LoteriaServico loteriaServico;

    @EJB
    JogoServico jogoServico;
    
    public List<Loteria> loterias(String nome) {
        return loteriaServico.findAll();
    }
    
    public List<Jogo> jogos(String nome) {
        return jogoServico.findAll();
    }
}
